#ifndef SRMAINWINDOW_H
#define SRMAINWINDOW_H

#include <OEFramelessWindow>



class QVBoxLayout;
class OESystemTrayIcon;
class QPushButton;
class QScrollArea;
class SRMainWindow : public OEFramelessWindow
{
    Q_OBJECT

public:
    SRMainWindow(QWidget *parent = 0);
    ~SRMainWindow();

private:

    void start(void);

protected:

    void closeEvent(QCloseEvent *event);

    void showEvent(QShowEvent *event);

    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
protected Q_SLOTS:

    void onShortcutShow(void);

    bool onDelDir(const QString& _path);





private Q_SLOTS:


//    void onSelectWallet(void);

//    void onCreateWallet(void);

    void onLogin(void);

    void onRegister(void);

    void onForgetPswd(void);

    void onBusiness(const QString &_user, const QString &_name);

private:

    void initLogin(void);

//    bool copyDir(const QString& _srcPath,
//                   const QString& _destPath,
//                   bool coverFileIfExist);



protected:

    // 是否支持移动
    bool        bIsMoveing_;

private:


    QVBoxLayout* layout_;

    QWidget* lastWidget_;

    OESystemTrayIcon* trayIcon_;

    QWidget* wdgtMainWindow_;

    QPushButton* btnClose_;

    int isMainWindow_;

    int firstLogin_;

    int registerMode_;

    bool        bMoveing_;

    QPoint      movePosition_;

};

#endif // SRMAINWINDOW_H
